package com.ofc.chart.engine;

import com.ofc.chart.builder.Bar3dJsonBuilder;
import com.ofc.chart.builder.LineJsonBuilder;
import com.ofc.chart.builder.PieJsonBuilder;
import com.ofc.chart.model.Bar3D;
import com.ofc.chart.model.Line;
import com.ofc.chart.model.Pie;

/**
 * Chart Json 构建引擎类
 * 
 * @author zhangpeng
 * @date 2012-12-6
 */
public class ChartJsonEngine {
	public static IChartJsonBuilder createBar3DJson(Bar3D bar3D) {
		return new Bar3dJsonBuilder(bar3D);
	}

	public static IChartJsonBuilder createPieJson(Pie pie) {
		return new PieJsonBuilder(pie);
	}

	public static IChartJsonBuilder createLineJson(Line line) {
		return new LineJsonBuilder(line);
	}
}
